
/**使用条件编译获取平台信息*/
function ifDefPlatform() {
  let platform = '';

  //#ifdef MP-KUAISHOU
  platform = 'MP-KUAISHOU';
  //#endif

  //#ifdef MP-TOUTIAO
  platform = 'MP-TOUTIAO';
  //#endif
  
  //#ifdef MP-WEIXIN
  platform = 'MP-WEIXIN';
  //#endif
  
  return platform;
}

function getSysType(){
	const platform = ifDefPlatform();
	let sys_type = '';
	if(platform === "MP-WEIXIN"){
		sys_type = 1;
	}else if(platform === "MP-TOUTIAO"){
		sys_type = 4;
	}else if(platform === "MP-KUAISHOU"){
		sys_type = 5;
	}
	return sys_type;
}


/**平台类型*/
export const Platform = ifDefPlatform()
/**默认导出平台类型*/
export default Platform

export const SystemType = getSysType()

export const isMpKuaishou = Platform === "MP-KUAISHOU"
export const isMpToutiao = Platform === "MP-TOUTIAO"